chore(ci): relax commit body line-length to warning#1416
Draft
samchu-zsl wants to merge 1 commit into
Draft
Conversation
The config-conventional preset enforces body-max-line-length at 100 as a hard error, which blocked commits that paste long URLs or stack traces. Downgrade it to a warning so contributors are nudged without being blocked; header-max-length and scope rules stay as errors. Assisted-by: Qoder Signed-off-by: shenglongzhu <samchu.zsl@alibaba-inc.com>
874f375 to
e4f8b95
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
config-conventionalpreset inherited by.github/commitlint.config.jsonenforcesbody-max-line-lengthat 100 as a hard error, which blocked commits that legitimately need long single lines (pasted URLs, stack traces). This change adds an explicit override downgrading the rule to a warning (level 1) at the same 100-char limit, so contributors get nudged without being blocked.header-max-lengthand the scope rules remain hard errors.Related Issue
no-issue: minor CI lint config tweak
Type / Scope
Testing
Config-only change. Verified
body-max-line-lengthis now level 1 (warning) in.github/commitlint.config.json;wagoid/commitlint-github-actiondefaults tofailOnWarnings: false, so warnings no longer fail the lint job.